package com.nms.dao;

import java.util.List;

import com.nms.model.User;


public interface UserDao extends BaseDao<User> {
	User findByUsername(String username);
	User findById(Integer id);
	List<User> findAll();
	boolean update(User user);
	boolean delete(User user);
	boolean deleteByUsername(String username);
	boolean add(User user);
	
	
	boolean setUserPw(User user,String newPw);
	boolean setUserPw(String username,String newPw);
}
